//
//  AYApiRequest.h
//  SuiXin
//
//  Created by mac on 2023/10/16.
//

#import <Foundation/Foundation.h>
#import "AY_BaseModel.h"
#import "AY_UserModel.h"
#import "AY_ChannelModel.h"
#import "AY_RankModel.h"
#import "AY_BookDetailModel.h"
#import "AY_BookSelfModel.h"
#import "AY_SortModel.h"
#import "AY_ChapterModel.h"
#import "AY_BookContentModel.h"
#import "AY_BookVpModel.h"
#import "AY_SearchKeyModel.h"
#import "AY_SearchModel.h"
#import "AY_AudioBookModel.h"
#import "AY_ConfigModel.h"
#import "AY_BannerInfoModel.h"
#import "AY_UserAssetModel.h"
#import "AY_QiuShuModel.h"
#import "AY_IsEditModel.h"
#import "AY_BookRecommendModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface AYApiRequest : NSObject

/** 注册 */
+ (void)registerSuccess:(void (^)(AY_BaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 获取用户信息 */
+ (void)getUserInfoSuccess:(void (^)(AY_UserModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 上传文件、图片 */
+ (void)postCommonUploadType:(NSString *)uploadType andFileParam:(NSDictionary *)fileParam andFileData:(NSData *)fileData success:(void (^)(AY_UploadModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 个人信息更新 */
+ (void)postUserInfoUpdate:(NSString *)update param:(NSString *)param updateType:(NSString *)updateType success:(void (^)(AY_UserUpdateModel *pkg))success failure:(void (^)(int status,NSString *info))failure ;

/** 获取书城频道列表 */
+ (void)getMallChannelSuccess:(void (^)(AY_titleSModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 获取频道下控件列表 */
+ (void)getMallChannelControlWithChannelId:(NSString *)channelId success:(void (^)(AY_ChannelModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
/** 内容刷新 */
+ (void)getMallContentRefreshWithControlId:(NSString *)controlId success:(void (^)(AY_BookRefreshModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 排行榜Home */
+ (void)getRankHomeConfigSuccess:(void (^)(AY_RankModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 排行榜内容 */
+ (void)getRankBookListWithRankId:(NSString *)rankId Success:(void (^)(AY_RankModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书籍详情 */
+ (void)getBookDetailWithBookId:(NSString *)bookId Success:(void (^)(AY_BookDetailModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书架新增/更新 */
+ (void)addBookWithBookId:(NSString *)bookId andChapterNo:(NSString *)chapterNo andPageNo:(NSString *)pageNo Success:(void (^)(AY_BaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书架信息 */
+ (void)getBookSelfListSuccess:(void (^)(AY_BookSelfModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 分类 value:0: 全部，1: 男，2：女;
*/
+ (void)getArticleCategoryListType:(NSString *)type Success:(void (^)(AY_SortModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 小说搜索
    categoryId分类id
    wordType 字数限制 1=30万以下，2=30~50万，3=50万以上;
    articleStatus 1: 连载中，2：完结，3：停更
*/
+ (void)postArticleListByCategoryCategoryId:(NSString *)categoryId
                                  wordType:(NSString *)wordType
                             articleStatus:(NSString *)articleStatus
                                    pageNum:(NSString *)pageNum
                                   pageSize:(NSString *)pageSize
                                   Success:(void (^)(AY_CategoaryModel *pkg))success
                                   failure:(void (^)(int status,NSString *info))failure;

/** 获取章节 */
+ (void)getBookChapterListWithPageNum:(NSString *)pageNum andPageSize:(NSString *)pageSize andArticleId:(NSString *)articleId Success:(void (^)(AY_ChapterModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 获取章节内容 */
+ (void)getBookContentWithChapterId:(NSString *)chapterId andAuto:(NSString *)autob Success:(void (^)(AY_BookContentModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 获取资产列表内容 */
+ (void)getPackageProductListWithAssetType:(NSString *)assetType Success:(void (^)(AY_BookVpModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** chase ---方式列表获取 */
+ (void)getPackagePymentTypeListSuccess:(void (^)(AY_PyChaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 用户签到详情查询 */
+ (void)getUserSignDetailSuccess:(void (^)(AY_SignModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 用户签到*/
+ (void)getUserSignUpSuccess:(void (^)(AY_SignUpModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
/** 补签 */
+ (void)getBackSignUpSuccess:(void (^)(AY_SignUpModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 搜索热词列表 */
+ (void)getSearchHotKeyWithLimit:(NSString *)limit Success:(void (^)(AY_SearchKeyModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 搜索推荐列表 */
+ (void)getSearchRecommengWithLimit:(NSString *)limit Success:(void (^)(AY_SearchModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书城小说搜索 联想搜索 */
+ (void)getSearchThinkWithLimit:(NSString *)limit andQk:(NSString *)qk Success:(void (^)(AY_SearchKeyModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书城小说搜索指定关键字搜索 */
+ (void)getSearchBookListWithLimit:(NSString *)limit andQk:(NSString *)qk Success:(void (^)(AY_SearchModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 书架历史 */
+ (void)getUserReadTimeRecordSuccess:(void (^)(AY_ReadHistoryModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
/** 书架小说删除 */
+ (void)getRemoveArticleShelfArticleIds:(NSString *)articleIds Success:(void (^)(AY_QiuBookModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
/** 阅读时长新增/更新 */
+ (void)getUpInsertReadTime:(NSString *)readTime articleId:(NSString *)articleId Success:(void (^)(AY_QiuBookModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 获取签到任务活动明细 */
+ (void)getSignActivityItemsSuccess:(void (^)(AY_PaQianDModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 求书
*/
+ (void)postWithArticleDemand:(NSString *)articleName
          articleLeadOrAuthor:(NSString *)articleLeadOrAuthor                                   Success:(void (^)(AY_QiuBookModel *pkg))success
                      failure:(void (^)(int status,NSString *info))failure;

/** 小说推荐列表 */
+ (void)getBookRecommendListWithArticleId:(NSString *)articleId andLimit:(NSString *)limit Success:(void (^)(AY_AudioBookModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 意见反馈 */
+ (void)postSuggestionSuggestionType:(NSString *)suggestionType content:(NSString *)content qqOrWx:(NSString *)qqOrWx mobile:(NSString *)mobile Success:(void (^)(AY_QiuBookModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 创建 */
+ (void)createOrdeWithPymentType:(NSString *)pymentType productId:(NSString *)productId productName:(NSString *)productName articleId:(NSString *)articleId Success:(void (^)(AY_SignModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 订单状态 */
+ (void)getOrderStatus:(NSString *)orderNo Success:(void (^)(AY_ConfigModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 包配置获取 */
+ (void)APPConfigSuccess:(void (^)(AY_ConfigModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** banner信息获取 */
+ (void)getBannerInfoWithCode:(NSString *)code Success:(void (^)(AY_BannerInfoModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

+ (void)getUserAssetRecordListWithAssetType:(NSString *)assetType month:(NSString *)month success:(void (^)(AY_UserAssetModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 今日阅读时长 */
+ (void)getTodayReadTimeSuccess:(void (^)(AY_TodayReadTimeModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 求书回复 */
+ (void)getQiuShuInfoSuccess:(void (^)(AY_QiuShuModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 标记求书请求已读 */
+ (void)readQiuShuSuccess:(void (^)(AY_BaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 小说催更 */
+ (void)cuiGengWithBookId:(NSString *)bookId Success:(void (^)(AY_BaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/** 用户阅读偏好更新 */
+ (void)genderWithFavoriteType:(NSString *)favoriteType Success:(void (^)(AY_BaseModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/**  */
+ (void)getIsEditSuccess:(void (^)(AY_IsEditModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
/**获取任务列表***/
+ (void)getTaskListWithSuccess:(void (^)(AY_TaskModel *pkg))success failure:(void (^)(int status,NSString *info))failure;

/**任务提交*/
+ (void)taskCommitWithTaskId:(NSString *)taskId andWithTaskItemId:(NSString *)taskItemId andWithcommitParamJson:(NSString *)commitParamJson andWithSuccess:(void (^)(AY_CommitTask *pkg))success failure:(void (^)(int status,NSString *info))failure;

/**推荐活动小说**/
+ (void)recommendTaskNovelWithSuccess:(void (^)(AY_BookRecommendModel *pkg))success failure:(void (^)(int status,NSString *info))failure;
@end

NS_ASSUME_NONNULL_END
